package com.zz.ecommerce.common.bean.insp.db.order;

import com.zz.bundles.cache.dict.DictTag;
import com.zz.ecommerce.common.bean.insp.xml.order.OrderGoodsListInformation;
import com.zz.ecommerce.common.constants.DictConstants;
import com.zz.ecommerce.utils.SqlType;

/**
 * Created by admin on 2016/3/16.
 */
public class TOrderGoodsListInsp extends OrderGoodsListInformation {

    private String id;

    private String relateId;

    @SqlType(type = "date", format = "yyyy-MM-dd hh24:mi:ss")
    private String createTime;

    private String operId;

    private String orgId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRelateId() {
        return relateId;
    }

    public void setRelateId(String relateId) {
        this.relateId = relateId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getUnitcodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_LAW_UNIT_E, unitcode, "CODE_I", "NAME_I");
    }

    public String getCountrycodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_TRADE_COUNTRY_E, countrycode, "CODE_I", "NAME_I");
    }

    public String getCurrencyDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_CURRENCY_E, currency, "CODE_I", "NAME_I");
    }

    @Override
    public String toString() {
        return "TOrderGoodsListInsp{" +
               "id='" + id + '\'' +
               ", relateId='" + relateId + '\'' +
               ", createTime='" + createTime + '\'' +
               ", operId='" + operId + '\'' +
               ", orgId='" + orgId + '\'' +
               '}';
    }
}
